package com.xy.logger;

import org.slf4j.LoggerFactory;
import org.springframework.core.task.TaskExecutor;

public class PooledPrinter {
	
	private org.slf4j.Logger	logger	= LoggerFactory.getLogger(this.getClass());
	private TaskExecutor		taskExecutor;
	
	public PooledPrinter(TaskExecutor taskExecutor) {
		super();
		this.taskExecutor = taskExecutor;
	}
	
	private class MessagePrinter implements Runnable {
		public void run() {
			logger.debug("debug a line");
			logger.info("info a line");
			logger.warn("warn a line");
			logger.error("error a line", new Exception("It is a test exception"));
		}
	}
	
}
